/**
 * @author: zzj
 * @date: 2020-04-03 09:02:14
 * @version: 1.0
 */
export const install =
  `
  npm install git+https://gitee.com/zhazjie/element-components.git --save
  `;
export const code =
  `
  import Vue from 'vue';
  import ElementComponents from 'element-components';
  import App from './App.vue';

  Vue.use(ElementComponents);

  new Vue({
    el: '#app',
    render: h => h(App)
  });
  `;
export const config =
  `
  Vue.use(
    ElementComponents,
    {
      //上传组件配置
      uploadConfig: {
        action: "/public/upload",
        headers: {}
      },
      //表格模版可行配置 1.0
      tableConfig: {
        permissions: []
      }
      //表格模版可选配置 2.0
      crudConfig: {
        addBtn: {
          hide: false,
          text: '新增',
          attrs: {},
          props: {}
        ,
        searchBtn: {},
        resetBtn: {},
        pageProp: {
          current: 'currentPage',
          size: 'pageSize',
        },
        dict: {
          baseUrl: '/api',
          resData: 'data',
          headers: {}
        },
        permissions: []
      }
    }
  );
  `;
export const transpile = `
module.exports = {
  transpileDependencies: [/_?element-components/]
};
`;
